# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libmsiecf-python
_pkgname=libmsiecf
__pkgname="${_pkgname}-python"
pkgver=20240425
pkgrel=3
pkgdesc='Library and tools to access the Microsoft Internet Explorer (MSIE) Cache File (index.dat) files.'
url='https://github.com/libyal/libmsiecf'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$__pkgname/$__pkgname-$pkgver.tar.gz")
sha512sums=('6ed2f21887a4cc89a7d6bb897b3ece65558fc8756e8cac210d6a4110db9770b61015573237b01bf22ca5a2a808d08bebba924a7182914c4b1070d7c7e84cb92b')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

